2007-11-03 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c:
* gdk/quartz/GdkQuartzWindow.h: Make the grab breaking on window
move work on Leopard (as well as Tiger) by ignoring which mouse
button is pressed.
svn path=/trunk/; revision=18964
+2007-11-03 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/GdkQuartzWindow.c:
+ * gdk/quartz/GdkQuartzWindow.h: Make the grab breaking on window
+ move work on Leopard (as well as Tiger) by ignoring which mouse
+ button is pressed.
+
2007-11-03 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
*/
-(void)windowWillMove:(NSNotification *)aNotification
{
- if (leftDown)
- inMove = YES;
+ inMove = YES;
}
-(void)sendEvent:(NSEvent *)event
{
switch ([event type])
{
- case NSLeftMouseDown:
- leftDown = YES;
- break;
-
case NSLeftMouseUp:
- leftDown = NO;
- inMove = NO;
inManualMove = NO;
inManualResize = NO;
+ inMove = NO;
break;
case NSLeftMouseDragged:
GdkEvent *event;
private->x = content_rect.origin.x;
- private->y = _gdk_quartz_window_get_inverted_screen_y (content_rect.origin.y) - impl->height;
+ private->y = _gdk_quartz_window_get_inverted_screen_y (content_rect.origin.y + content_rect.size.height);
/* Synthesize a configure event */
event = gdk_event_new (GDK_CONFIGURE);
#include <glib.h>
@interface GdkQuartzWindow : NSWindow {
- BOOL leftDown;
BOOL inMove;
/* Manually triggered move/resize (not by the window manager) */